home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 January / january_2001.iso / intercd / root / ^4Developers / VB / visbasdb / VBDB / VBDB Code / VB5 Code / Class 6 / QuickExample5.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-08-25  |  2.4 KB  |  77 lines

  1. VERSION 5.00
  2. Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   2625
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   4575
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   2625
  11.    ScaleWidth      =   4575
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.Data Data2 
  14.       Caption         =   "Data2"
  15.       Connect         =   "Access"
  16.       DatabaseName    =   "c:\VBDB\Working\Biblio.mdb"
  17.       DefaultCursorType=   0  'DefaultCursor
  18.       DefaultType     =   2  'UseODBC
  19.       Exclusive       =   0   'False
  20.       Height          =   300
  21.       Left            =   2280
  22.       Options         =   0
  23.       ReadOnly        =   0   'False
  24.       RecordsetType   =   1  'Dynaset
  25.       RecordSource    =   "Titles"
  26.       Top             =   2280
  27.       Width           =   2295
  28.    End
  29.    Begin VB.TextBox Text1 
  30.       Height          =   495
  31.       Left            =   2280
  32.       TabIndex        =   1
  33.       Text            =   "Text1"
  34.       Top             =   120
  35.       Width           =   2175
  36.    End
  37.    Begin VB.Data Data1 
  38.       Caption         =   "Data1"
  39.       Connect         =   "Access"
  40.       DatabaseName    =   "C:\VBDB\Working\Biblio.mdb"
  41.       DefaultCursorType=   0  'DefaultCursor
  42.       DefaultType     =   2  'UseODBC
  43.       Exclusive       =   0   'False
  44.       Height          =   300
  45.       Left            =   120
  46.       Options         =   0
  47.       ReadOnly        =   0   'False
  48.       RecordsetType   =   1  'Dynaset
  49.       RecordSource    =   "Publishers"
  50.       Top             =   2280
  51.       Width           =   2100
  52.    End
  53.    Begin MSDBCtls.DBList DBList1 
  54.       Bindings        =   "QuickExample5.frx":0000
  55.       DataField       =   "PubID"
  56.       DataSource      =   "Data2"
  57.       Height          =   2010
  58.       Left            =   120
  59.       TabIndex        =   0
  60.       Top             =   120
  61.       Width           =   2055
  62.       _ExtentX        =   3625
  63.       _ExtentY        =   3545
  64.       _Version        =   327680
  65.       ListField       =   "Company Name"
  66.       BoundColumn     =   "PubID"
  67.    End
  68. Attribute VB_Name = "Form1"
  69. Attribute VB_GlobalNameSpace = False
  70. Attribute VB_Creatable = False
  71. Attribute VB_PredeclaredId = True
  72. Attribute VB_Exposed = False
  73. Option Explicit
  74. Private Sub DBList1_Click()
  75. Text1.Text = DBList1.BoundText
  76. End Sub
  77.